<template>
  <cell :center="true" :to="`/${o.lotteryType}/order?id=${o.id}`" is-link>
    <div class="flex-middle">
      <div>
        <div>{{o.lotteryType == 'jingcai' ? o.lotteryName : ''}} {{o.ruleName}}</div>
        <small class="text-grey">{{o.amount}}元 {{o.createTime}}</small>
      </div>
      <div class="ml-auto text-right pr-2">
        <div class="text-grey">{{o.statusText}}</div>
        <small class="text-grey">{{o.statusTips}}</small>
      </div>
    </div>
  </cell>
</template>

<script>
import { Cell } from 'vant'

export default {
  components: {Cell},
  props: ['o'],
  name: 'order'
}
</script>
